function v = getval(x)
  if(isa(x,'deriv1s'))
    v = x.v;
  else
    v = x;
  end
